package com.project.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.entity.VerifyEntity;
import com.project.service.IVerifyService;
import com.project.util.CreateToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Verify")
public class VerifyController {

    @Autowired
    private IVerifyService service;


    @RequestMapping("Login")
    public String Login(String account, String password) {
       String token = service.Login(account,password);
       return token;
    }
}
